package com.matt.repository.observation;

import com.matt.domain.observation.ObservationNewOption;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

import java.util.List;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/8/14
 * *******************************
 */
public interface ObservationNewOptionRepository extends JpaRepository<ObservationNewOption, String>{
    List<ObservationNewOption> findByObservationIdAndDeleted(String observationId, Boolean deleted);

    @Modifying
    void deleteByObservationId(String observationId);
}
